//
//  SASkeletonUtil.h
//  GameFrame
//
//  Created by Hiroshi Nomura on 2014/05/12.
//  Copyright (c) 2014年 Hiroshi Nomura. All rights reserved.
//

#ifndef GameFrame_SASkeletonUtil_h
#define GameFrame_SASkeletonUtil_h

#include "SAElementType.h"

Joint* searchJointByName(Skeleton* skeleton, const char* jointName);
Joint* searchJointById(Skeleton* skeleton, const short jointId);

void transformLocalPoseToGlobalPose(Skeleton* skeleton, Matrix4x4 mtx);
void transformChildPoseToParentPose(Joint *joint, Matrix4x4 mtx);

void convertPoseToMatrix4x4(Pose *pose, Matrix4x4 mtx);

#endif
